<body class="gray-bg">
<div class="ibox-content">
    <form class="form-horizontal" method="post" action="{:url('WorkflowDiyForm/edit')}">
        <input type="hidden" name="id" value="{$info['id']|default='0'}">
        <div class="form-group">
            <label class="col-sm-2 control-label">表单名称</label>
            <div class="col-sm-8">
                <input name="name" class="form-control" type="text" placeholder="模型名称" value="{$info['name']|default=''}"/>
                <span class="help-block m-b-none"></span> </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">主表名称</label>
            <div class="col-sm-8">
                <input name="main_table" class="form-control" type="text" placeholder="主表名称" required value="{$info['main_table']|default=''}" readonly/>
                <span class="help-block m-b-none"></span> </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">扩展表名称</label>
            <div class="col-sm-8">
                <input name="ext_table" class="form-control" type="text" placeholder="扩展表名称" value="{$info['ext_table']|default=''}" readonly/>
                <span class="help-block m-b-none"></span> </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">审批流程</label>
            <div class="col-sm-10">
                <select name="workflow_id" class="form-control">
                    <option value="">选择审批的流程</option>
                    {volist name='$workflow_list' id='vo'}
                    <option value="{$vo['id']}">{$vo['name']}</option>
                    {/volist}
                </select>
                <span class="help-block m-b-none"></span>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                {include file="admin@layout/save_btn"}
            </div>
        </div>
    </form>
</div>